package IOStream;
/*
InputStreamReader
字符输入流 按照指定字符集读取字符*/

import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStreamReader;
public class ISRDemo {
    public static void main(String[] args) throws IOException {
        FileInputStream fis=new FileInputStream("Demo.txt");
        InputStreamReader isr=new InputStreamReader(fis,"UTF-8");

        int b=-1;
        while ((b=isr.read())!=-1){
            System.out.print((char) b);
        }

        isr.close();


    }
}
